#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    vector<int> evenOddBit(int n) {
        int cur = 0;
        vector<int> res(2, 0);
        while (n)
        {
            if ((n & 1) == 1)
                res[cur % 2]++;
            ++cur;
            n >>= 1;
        }
        return res;
    }
};